package vn.com.bookstore.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vn.com.bookstore.dao.TransactionDao;
import vn.com.bookstore.domain.model.PagingInfo;
import vn.com.bookstore.domain.model.SearchResult;
import vn.com.bookstore.model.vo.TransactionVO;

@Service
public class TransactionService {
	
	@Autowired
	private TransactionDao transactionDao;
	
	public SearchResult<TransactionVO> getTransactionByCustomerId(PagingInfo pagingInfo, int customerId) {
		return transactionDao.getTransactionByCustomerId(pagingInfo, customerId);
	}
}
